module.exports = {
  devServer: {               
      open: true,
      port: 8001,
      proxy: {
          '/api': {
              target: "http://test.com:3000",  //真实访问路径
              ws: true,
              changeOrigin: true,  //是否允许跨域
              secure: false, //如果是https则为true  加密数据
              pathRewrite: {
                  '^/api': '/',
              }
          }
      }
  },
  pluginOptions: {
      "style-resources-loader":{
          preProcessor: "less",
          patterns: [require('path').resolve(__dirname, './src/assets/style/public.less')]
      }  
  }
}
